//放用户数据
export default {
  namespaced: true,
  //state:{}
  state () {
    return {
      age: 20
    }
  },
  mutations: {
    updateAge (state, n) {
      state.age += n
    }
  },
  actions: {
    updateAgeAfter (store, m) {
      setTimeout(() => {
        store.commit('updateAge', m)
      }, 2000)
    }
  }
}
